package com.company.project.service;
import com.company.project.core.Result;
import com.company.project.model.RoleAuthDto;
import com.company.project.model.SysRole;
import com.company.project.core.Service;

import java.util.List;


/**
 * Created by CodeGenerator on 2020/04/18.
 */
public interface SysRoleService extends Service<SysRole> {
    /**
     * 根据用户ID查询角色列表
     * @param userId 用户ID
     * @return
     */
    public List<SysRole> getRoleListByUser(int userId);

    /**
     * 更改角色状态
     * @param roleId
     * @param status
     * @return
     */
    Result changeStatus(int roleId, int status);

    /**
     * 批量修改用户权限
     * @param roleAuthDto
     * @return
     */
    Result batchUpdateRoleAuth(RoleAuthDto roleAuthDto);

}
